package main.client;

import java.io.Serializable;

public class User implements Serializable {

	private static final long serialVersionUID = 1L;
	private int id;
	private String userName;
	private String firstName;
	private String lastName;
	private String eMail;
	private String address;
	
	/**
	 * Empty constructor
	 */
	public User(){		
	}
	/**
	 * Alternative constructor
	 * @param username
	 */
	public User(String username) {
		this.userName = username;
	}
	
	/**
	 * Set:ers for the local variables
	 */
	public void setId(int id) {this.id = id;}
	public void setUserName(String userName) {this.userName = userName;}
	public void setFirstName(String firstName) {this.firstName = firstName;}
	public void setLastName(String lastName) {this.lastName = lastName;}	
	public void seteMail(String eMail) {this.eMail = eMail;}
	public void setAddress(String address) {this.address = address;}
	
	/**
	 * Get:ers for the local variables
	 */
	public int getId() {return id;}
	public String getUserName() {return userName;}
	public String getFirstName() {return firstName;}
	public String getLastName() {return lastName;}
	public String geteMail() {return eMail;}
	public String getAddress() {return address;}
	/**
	 * A copy function for User
	 * @param copy
	 */
	public void copy(User copy) {
		this.userName = copy.getUserName();
		this.address = copy.getAddress();
		this.eMail = copy.geteMail();
		this.firstName = copy.getFirstName();
		this.lastName = copy.getLastName();
		this.id = copy.getId();
	}
}
